Ext.define('Jason.view.protal.yyzb.MainView',{
	extend : 'Ext.container.Container',
	xtype : 'yypdView',
	requires:[
		'Ext.form.Panel',
		'Jason.view.protal.yyzb.MainViewCtrl'
	],
	controller:'yypdViewCtrl',
	layout: {
        type: 'hbox',
        align: 'stretch'
    },
	items:[{
		flex:.3,
		xtype : 'treepanel',
		rootVisible: false,
		listeners:{
			itemclick:'onTreeItemclick'
		},
		store:{
			type:'tree',
	        fields: [{name:'text',mapping:'name'},'leaf','formsrc'],
	        proxy: {
                type: 'ajax',
                url:  cfg.requestUrl + 'app/localData/djps/master' + cfg.suffix
            }
		}
	},{
		flex:.7,itemId:'centerView',
		xtype : 'form',margin:'0 0 0 6',bodyPadding:6
	}]
})